package business;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;

import service.vo.MessageVo;
import struts.common.panDuan;

public class panDuanAction implements panDuan{

	@Override
	public String excute(HttpServletRequest request) {
		String name = request.getParameter("name");
		 MessageVo vo = new MessageVo();
		String url ="";
		boolean flag = false;
		if(name.equals("wxc")){
			vo.setMess("成功");
			vo.setName(name);
			vo.setSss("sssss");
			
			url = "/view/MyJsp.jsp";
		}else{
			vo.setMess("失败");
			vo.setName(name);
			vo.setSss("sssss");
			url = "/view/MyFalse.jsp";
		}
		request.setAttribute("vo",vo);
		return url;
	}

}
